<table class="table table-striped">
  <tr><th>标题</th><th>所属网站</th><th>问题时间</th><th>问题状态</th></tr>

<?php 	foreach($dt as $v):	?>
	<tr><td><a href="/sdksystem/answer/<?php echo $v->qid;?>"><?php echo $v->email; ?></a></td><td><?php echo $v->sitename; ?></td><td><?php echo $v->ctime; ?></td><td>
	
	<?php
		$show = '';
		$color = '';
		switch($v->status){
			case 0:
				$show = '未回答';
				$color = 'red';
				break;
			case 1:
				$show = '已回答';
				$color = 'green';
				break;
			case 2:
				$show = '关闭';
				$color = '#ccc';
				break;
		}
	?>
	
	<span style="color:<?php echo $color; ?>"><?php echo $show; ?></span>
	
	</td></tr>	
	<?php endforeach ?>
</table>

<?php echo $page;?>